Skip to content

[ENG-7839] [ENG-7766] Add celery task to update Datacite metadata + Use new GV API endpoint to retrieve node's verified links + Update unit tests #11130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Vlad0n20
Copy link
Contributor

@Vlad0n20 Vlad0n20 commented May 6, 2025

Purpose

  • Add celery task to update Datacite metadata
  • Use new GV API endpoint to retrieve node's verified links
  • Fix unit tests due to OSF making GV requests during identifier update

Changes

See diff

QA Notes

N/A

Documentation

N/A

Side Effects

N/A

Ticket

https://openscience.atlassian.net/browse/ENG-7839
https://openscience.atlassian.net/browse/ENG-7766

@Vlad0n20 Vlad0n20 changed the title [ENG-7839]Feature/eng 7839[ENG-7839] [ENG-7766] Add celery task to update Datacite metadata + Use new GV API endpoint to retrieve node's verified links [ENG-7839] [ENG-7766] Add celery task to update Datacite metadata + Use new GV API endpoint to retrieve node's verified links May 6, 2025
@Vlad0n20 Vlad0n20 force-pushed the feature/ENG-7839 branch 3 times, most recently from d28e8c9 to d05c9a2 Compare May 8, 2025 10:58
Copy link
Collaborator

@cslzchen cslzchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to my comments, I also see lots of .turtle files change, wondering why we need to change it. Some only seems to be moving stuff around.

Copy link
Collaborator

@cslzchen cslzchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review update:

First, let's make the use of the mock consistent:

  • No need to define the fixture outside conftest.py
  • Always use the @pytest.mark.usefixtures() (instead of using @pytest.fixture(autouse=True) or adding an extra argument).

Second, take a look at all the metadata file changes, as I mentioned in the comment.

Vlad0n20 added 2 commits May 15, 2025 16:30
…test.mark.usefixtures(). Also replace pass the mock as arguments to decorator style
@Vlad0n20 Vlad0n20 force-pushed the feature/ENG-7839 branch from 07f409e to 89b5a3d Compare May 15, 2025 13:42
Copy link
Collaborator

@cslzchen cslzchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few left-overs, and I commented on every place that needs to be cleaned up.

Copy link
Collaborator

@cslzchen cslzchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and thanks for the awesome work @Vlad0n20 and great support @opaduchak. I will take care of the rest nitpicking stuff before merge.

@cslzchen cslzchen force-pushed the feature/ENG-7839 branch from 556304a to 2190a32 Compare May 16, 2025 17:28
@cslzchen cslzchen changed the title [ENG-7839] [ENG-7766] Add celery task to update Datacite metadata + Use new GV API endpoint to retrieve node's verified links [ENG-7839] [ENG-7766] Add celery task to update Datacite metadata + Use new GV API endpoint to retrieve node's verified links + Update unit tests May 16, 2025
@cslzchen cslzchen merged commit 1686ef8 into CenterForOpenScience:feature/verified-resource-linking May 16, 2025
6 checks passed
cslzchen added a commit to cslzchen/osf.io that referenced this pull request May 19, 2025
…NG-7839

[ENG-7839] [ENG-7766] Add celery task to update Datacite metadata + Use new GV API endpoint to retrieve node's verified links + Update unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants